package com.zhang.factory.method;

import com.zhang.factory.method.Car;
import com.zhang.factory.method.CarFactory;

public class Consumer {
    public static void main(String[] args){

        Car car = new WuLingFactory().getCar();
        Car car2 = new TeslaFactory().getCar();
        Car car1 = new MoBaiFactory().getCar();

        car.name();
        car1.name();
        car2.name();

    }
}
